package com.sevntu.apvs.dModel;

import java.util.List;

import com.sevntu.apvs.duelement.Element;

/**
 * Class describes a model of discrete unit.
 * 
 * @author <a href="mailto:rd.ryly@gmail.com">Ruslan Diachenko</a>
 */
public class DModel {

	/** List of circuit elements */
	private final List<Element> elemList;

	/** List of circuits */
	private final List<CircuitStructure> circuitList;

	/**
	 * Constructor which initializes list of circuits and their elements.
	 * 
	 * @param elemList
	 *            List of circuit elements.
	 * @param circuitList
	 *            List of circuits.
	 */
	public DModel(List<Element> elemList, List<CircuitStructure> circuitList) {
		this.elemList = elemList;
		this.circuitList = circuitList;
	}

	/**
	 * Gets list of circuit elements.
	 * 
	 * @return List of circuit elements.
	 */
	public List<Element> getElemList() {
		return elemList;
	}

	/**
	 * Gets list of circuits.
	 * 
	 * @return List of circuits.
	 */
	public List<CircuitStructure> getCircuitList() {
		return circuitList;
	}
}
